package com.ke.forum.mbg.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ke.forum.mbg.entity.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ke.forum.mbg.entity.dto.CommentDto;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 珂
 * @since 2021-05-22
 */
@Repository
public interface CommentMapper extends BaseMapper<Comment> {

    Page<CommentDto> listComment(Page<CommentDto> page,Integer articleId);

    Page<CommentDto> listReply(Page<CommentDto> page,Integer commentId);
}
